﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WMSSystem.DYB.Dto.Inboundmanagement.Input
{
    public class CreateInboundInput
    {

        /// <summary>
        /// 入库类型
        /// </summary>
        public string Type { get; set; }

        /// <summary>
        /// 入库日期
        /// </summary>
        public DateTime Date { get; set; }

        /// <summary>
        /// 状态 1草稿 2待审核 3驳回 4已完成
        /// </summary>
        public int State { get; set; }

        /// <summary>
        /// 仓库名称(外籍)
        /// </summary>
        public Guid Warehouseid { get; set; }

        /// <summary>
        /// 关联单号(外键)
        /// </summary>
        public Guid Inventorydetailsid { get; set; }

        /// <summary>
        /// 经办人
        /// </summary>
        public Guid Manager { get; set; }

        /// <summary>
        /// 供应商
        /// </summary>
        public string Vendor { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        public string Contact { get; set; }

        /// <summary>
        /// 联系方式
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }

        public List<CreateInventoryDetailsInput> CreateInventoryDetailsInput { get; set; }
    }

    public class CreateInventoryDetailsInput
    {
        /// <summary>
        /// 货品信息Id（外键）
        /// </summary>
        public Guid CommoditiesId { get; set; }
        /// <summary>
        /// 库位Id（外键）
        /// </summary>
        public Guid Positionid { get; set; }

        /// <summary>
        /// 本次入库数量
        /// </summary>
        public int? Num { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public string Lotnumber { get; set; }

        /// <summary>
        /// 生产日期
        /// </summary>
        public DateTime Date { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
    }
}
